<?php

namespace App\Api\Logic\Validate;

class UserBankValidate extends BaseValidate
{
    //验证的规则
    protected $rule = [
        'bank_num'=>'required',
        'open_bank'=>'required',
        'bank_user_name'=>'required',
        'id'=>'required'
    ];
    //消息提示
    protected $message = [
        'bank_num.required'=>'请输入银行卡号',
        'open_bank.required'=>'请输入开户行',
        'bank_user_name.required'=>'请输入持卡人名称',
        'id.required'=>'请选择查看的数据'
    ];
    //验证的场景
    protected $scene = [
        'addBank'=>'bank_num,open_bank,bank_user_name',
        'bankInfo'=>'id',
        'delBank'=>'id',
        'editBank'=>'id,bank_num,open_bank,bank_user_name',
    ];

}
